--- lib/fsplib/fsplib.h.orig
+++ lib/fsplib/fsplib.h
@@ -3,6 +3,7 @@
 #include <time.h>
 #include <dirent.h>
 #include <sys/stat.h>
+#include <sys/param.h>
 #include <stddef.h>
 
 /* The FSP v2 protocol support library - public interface */
